﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace models
{
    public class Pay
    {
        //购买信息详情表-模型
        private int id;
        private int count;//数量
        private int userid;//用户id
        private int storeid;//店铺id
        private int proid;//商品id
        private string proName;//商品名
        private string proPic;//商品图片
        private string proSpeci;//商品规格
        private decimal proPrice;//商品单价
        private string storeName;//店家名字
        private string userName;//买家名字
        private decimal ssum;//单物品总价
        private string batch;//订单时间
        private decimal sum;//总价
        public Pay() { }
        public Pay(decimal proPrice) 
        {
            this.proPrice = proPrice;
        }

        public Pay(int count, int userid, int storeid, int proid, string batch)
        {
            this.count = count;
            this.userid = userid;
            this.storeid = storeid;
            this.proid = proid;
            this.batch = batch;
        }

        public Pay(int id, int count, int userid, int storeid, int proid, string batch)
        {
            this.id = id;
            this.count = count;
            this.userid = userid;
            this.storeid = storeid;
            this.proid = proid;
            this.batch = batch;
        }

        public Pay(int count, int userid, int storeid, int proid, string batch, decimal sum)
        {
            this.count = count;
            this.userid = userid;
            this.storeid = storeid;
            this.proid = proid;
            this.batch = batch;
            this.sum = sum;
        }

        public Pay(int id, int count, int userid, int storeid, int proid, string batch, decimal sum)
        {
            this.id = id;
            this.count = count;
            this.userid = userid;
            this.storeid = storeid;
            this.proid = proid;
            this.batch = batch;
            this.sum = sum;
        }

        public Pay(decimal ssum, int count, int proid, string proName, string proPic, string proSpeci, decimal proPrice, int storeid, string storeName, int userid,  string userName, string batch)
        {
            this.ssum = ssum;//这个物品的总价
            this.count = count;//这个物品的数量
            this.proid = proid;//商品id
            this.proName = proName;//商品名称
            this.proPic = proPic;//商品图片
            this.proSpeci = proSpeci;//商品规格
            this.proPrice = proPrice;//商品单价
            this.storeid = storeid;//店家ID
            this.storeName = storeName;//店家名
            this.userid = userid;//用户id
            this.userName = userName;//用户昵称
            this.batch = batch;//订单号
           
        }

        public int Id { get => id; set => id = value; }
        public int Count { get => count; set => count = value; }
        public int Userid { get => userid; set => userid = value; }
        public int Storeid { get => storeid; set => storeid = value; }
        public int Proid { get => proid; set => proid = value; }
        public string Batch { get => batch; set => batch = value; }
        public decimal Sum { get => sum; set => sum = value; }
        public string ProName { get => proName; set => proName = value; }
        public string ProPic { get => proPic; set => proPic = value; }
        public string ProSpeci { get => proSpeci; set => proSpeci = value; }
        public decimal ProPrice { get => proPrice; set => proPrice = value; }
        public string StoreName { get => storeName; set => storeName = value; }
        public string UserName { get => userName; set => userName = value; }
        public decimal Ssum { get => ssum; set => ssum = value; }
    }
}
